using SX.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SX.BaseService.Service
{
    /// <summary>
	/// SysOrganize服务接口
	/// </summary>
    public interface ISysOrganizeService
    {
        /// <summary>
        /// 树形结构
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> GetTree();
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Query(OrgQueryModel model);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Add(OrgAddModel model);
        Task<IApiResult> Delete(string ids);
        Task<IApiResult> GetById(string id);
        Task<IApiResult> Update(OrgUpdateModel model);
    }
}